package light.head.model.el;

import java.io.Serializable;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
/**
 * 考试题目记录(试卷)
 */
@Table
@Entity
public class TopicRecord implements Serializable{

	
	private static final long serialVersionUID = 5243684702127363644L;
	private Integer code;				// 流水号
	private	Integer erc;				// 考试记录编号
	private Integer tc;					// 题目编号
	private Float point;				// 得分
	private Integer oc;					// 创建机构
	private Integer cu;					// 创建人
	private Float points;				//题目分值
	private Boolean deleted = false;	// 是否删除
	
	private Byte type;					//题目类型
	private List<AnswerRecord> arList;	// 答题记录
	private Topic topic;				// 题目
	
	
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column
	public Integer getCode() {
		return code;
	}
	@Column
	public Integer getErc() {
		return erc;
	}
	@Column
	public Integer getTc() {
		return tc;
	}
	@Column
	public Integer getOc() {
		return oc;
	}
	@Column
	public Integer getCu() {
		return cu;
	}
	@Column
	public Boolean getDeleted() {
		return deleted;
	}
	@Column
	public Float getPoint() {
		return point;
	}
	@Column
	public Float getPoints() {
		return points;
	}
	@Transient
	public Byte getType() {
		return type;
	}
	@Transient
	public List<AnswerRecord> getArList() {
		return arList;
	}
	@Transient
	public Topic getTopic() {
		return topic;
	}
	
	
	public void setCode(Integer code) {
		this.code = code;
	}
	public void setErc(Integer erc) {
		this.erc = erc;
	}
	public void setTc(Integer tc) {
		this.tc = tc;
	}
	public void setOc(Integer oc) {
		this.oc = oc;
	}
	public void setCu(Integer cu) {
		this.cu = cu;
	}
	public void setDeleted(Boolean deleted) {
		this.deleted = deleted;
	}
	public void setArList(List<AnswerRecord> arList) {
		this.arList = arList;
	}
	public void setPoint(Float point) {
		this.point = point;
	}
	public void setType(Byte type) {
		this.type = type;
	}
	public void setPoints(Float points) {
		this.points = points;
	}
	public void setTopic(Topic topic) {
		this.topic = topic;
	}
}
